﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yugi.Client.Card;
namespace Yugi.Client
{
    public partial class SupervisorModel 
    {
        /// <summary>
        /// Bat Dau Draw Phase
        /// </summary>
        /// <param name="param"></param>
        private void ProcessFromServer_TURN_DRAWPHASE_BEGIN(params object[] param)
        {
            int id = (int)param[0];

            if (id != this.Nguoi_Choi.YPlayer.ID)
            {
                //Khong phai luot Choi cua minh
                this.Turn.ReceiveMessageFromSupervisor(ClientMSG.DoiTurn, EnumTable.DrawPhase);
                return;
            }
            this.TableGame.YStateNow = EnumTable.DrawPhase;
            this.Nguoi_Choi.YStateNow = EnumTable.DrawPhase;
            this.Turn.ReceiveMessageFromSupervisor(ClientMSG.DoiTurn, EnumTable.DrawPhase);
        }

        private void ProcessFromServer_CARD_RUTBAI(params object[] param)
        {
            this.Nguoi_Choi.ReceiveMessageFromSupervisor(ClientMSG.RutBai, param[0]);
            this.SendMessageToServer(Common.YMSG.CARD_RUTBAI_XONG);
        }

        private void ProcessFromServer_TURN_DRAWPHASE_END(params object[] param)
        {
            
        }

       
    }
}
